package exception;

public class ExceptionApiDemo {
    public static void main(String[] args) {
        try {
            String str = "abc";
            int d = Integer.parseInt(str);
            System.out.println(d);
        }catch (NumberFormatException e){
            e.printStackTrace();
            String message = e.getMessage();
            System.out.println("message:"+message);
        }
    }
}
